<?php
  include('lock.php');
  //store into cart upon clicking add
  if($_SERVER["REQUEST_METHOD"] == "POST")
  {
    if(isset($_POST['addID']))
    { 
      $add = addslashes($_POST['addID']);
      $sql=("INSERT INTO cart (demo_ID, user_ID) VALUES ('$add','$login_session')");
      mysql_query($sql);
      echo"demo". $add." added!"."<br/>";
      header('Location: index2.php');
    }
  }
?>